package org.jeecg.common.exception;

import lombok.Getter;

@Getter
public class JeecgBootException extends RuntimeException{
    private Integer code;
    private String msg;

    public JeecgBootException(String msg) {
        this.msg = msg;
        this.code = 500;
    }

    public JeecgBootException(Integer code, String msg) {
        this.msg = msg;
        this.code = code;
    }

    public JeecgBootException(SxkfExceptionEnum sxkfExceptionenum) {
        this(sxkfExceptionenum.getCode(), sxkfExceptionenum.getMsg());
    }
}
